<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="actorList.title"/></title>
    <meta name="heading" content="<fmt:message key='actorList.heading'/>"/>
    <meta name="menu" content="ActorMenu"/>
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px"
        onclick="location.href='<c:url value="/actorform.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false"/>

<display:table name="actorList" class="table" requestURI="" id="actorList" export="true" pagesize="25">
    <display:column property="id" sortable="true" href="actorform.html" media="html"
        paramId="id" paramProperty="id" titleKey="actor.id"/>
    <display:column property="id" media="csv excel xml pdf" titleKey="actor.id"/>
    <display:column sortProperty="birthDate" sortable="true" titleKey="actor.birthDate">
         <fmt:formatDate value="${actorList.birthDate}" pattern="${datePattern}"/>
    </display:column>
    <display:column property="firstName" sortable="true" titleKey="actor.firstName"/>
    <display:column property="lastName" sortable="true" titleKey="actor.lastName"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="actorList.actor"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="actorList.actors"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="actorList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="actorList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="actorList.title"/>.pdf</display:setProperty>
</display:table>

<c:out value="${buttons}" escapeXml="false"/>

<script type="text/javascript">
    highlightTableRows("actorList");
</script> 